<%@ page language="java" import="java.util.*,com.ts.common.util.bean.News,com.ts.web.service.ICommonService,com.ts.common.util.BeanFactory" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

 <TABLE border=0 cellSpacing=0 cellPadding=0 width=225 
      background=images/bani_06.gif height=52>
        <TBODY>
        <TR>
          <TD width=39>&nbsp;</TD>
          <TD vAlign=top width=186>
            <TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
              <TBODY>
              <TR>
                <TD height=18>&nbsp;</TD></TR>
              <TR>
                <TD height=24 align=left><SPAN class=mieeend><STRONG><A 
                  href="common.do?method=news_all">行业资讯</A></STRONG></SPAN></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
     
<%
    ICommonService ic = (ICommonService) BeanFactory
			.getBean(BeanFactory.COMMONSERVICE);
 	List<News> news = null;
    news = ic.getNews(10,"行业资讯");
 %>


 <TABLE border=0 cellSpacing=6 cellPadding=0 width=225>
        <TBODY>
<% for(News new1 : news){
 String title = new1.getTitle();
 String id = new1.getId();
 String str = "";
  if(title.length() > 15){
    str = title.substring(0,15)+ "...";
  }else{
    str = title;
  }
 %>

        <TR>
          <TD height=2 width=23 align=right><IMG src="images/0020.gif" 
            width=13 height=21></TD>
          <TD class=fontbk2 width=184 align=left>
            <DIV 
            style="WIDTH: 200px; TEXT-OVERFLOW: ellipsis; WHITE-SPACE: nowrap; OVERFLOW: hidden; ord-break: keep-all;margin-top: 5px;"><A 
            title=<%=title %> 
            href="common.do?method=news&id=<%=id %>" target="_blank"><%=str %></A></DIV></TD></TR>
            
      <%      } %>
       </TBODY></TABLE>
